package com.opp.demo01;
//引用传递：对象，本质还是值传递
public class Demo05 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name);

        Demo05.change(person);
        System.out.println(person.name);//李衍闯

    }
    public static void change(Person person){
        person.name = "李衍闯";
    }
}
//定义了一个Person类，有一个属性：name
class Person{
    String name;//默认值：null
}
